<div class="zs-body" data-ng-init="formInit('gzdevicemaintain', {
        keyField:'id',
        randomFields:['id'],
        orderObject:{id:0}
    }) && loadData('gzdevicemaintain');setConHei();">
    <div class="zs-map-tool">
        <div class="location">
            <a href="javascript:;">首页</a>
            <i class="right-arr"></i>
            <a href="javascript:;">固定资产</a>
            <i class="right-arr"></i>
            <a href="javascript:;">设备维修记录</a>
        </div>
        <div class="option">
            <input type="button" class="zs-btn orange" value="新建" 
                ng-click="addRow('gzdevicemaintain') && openWindow('edit');"/>
            <input type="button" class="zs-btn orange" value="编辑" 
                ng-click="editRow('gzdevicemaintain', gzdevicemaintain.sRows[0]) && openWindow('edit')"/>
            <input type="button" class="zs-btn orange" value="删除 "
                ng-click="delEntitys('gzdevicemaintain')"/>
        </div>
    </div>
    <div class="zs-content" style="position:unset">
        <div class="zs-nice-tab idTabs">
			<div class="tool item" style="margin-left:6px;">
            	<!--<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="ID" ng-model="gzdevicemaintain.queryObject['id']"/>
                </span>
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="I_VERSION" ng-model="gzdevicemaintain.queryObject['iversion']"/>
                </span>-->
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="设备编号" ng-model="gzdevicemaintain.queryObject['ssbbh']"/>
                </span>
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="设备名称" ng-model="gzdevicemaintain.queryObject['ssbmc']"/>
                </span>
               <span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="申请人" ng-model="gzdevicemaintain.queryObject['ssqr']"/>
                </span>
            </div>
            <div class="operation item" style="margin-top:7px;">
                <input type="button" class="zs-btn orange" value="查询" 
                    ng-click="loadData('gzdevicemaintain')"/>
            </div>
        </div>
        <div class="date-container">
            <div id="zpgwd">
                <div class="zs-data-table">
                    <div class="container">
                        <table>
                            <thead>
                                <tr>
                                    <th>
                                        <input id="allCheckbox" type="checkbox"
                                            ng-click="selectAll('gzdevicemaintain','allCheckbox');" />
                                    </th>
									<!--<th>ID</th>
									<th>I_VERSION</th>-->
									<th>设备编号</th>
									<th>设备名称</th>
								<!--	<th>维修单位</th>-->
									<th>故障描述</th>
									<th>申请人</th>
									<th>申请时间</th>
									<!--<th>故障报告接收人</th>
									<th>报告接收日期</th>
									<th>故障维修工程师</th>
									<th>故障维修日期</th>
									<th>故障诊断报告</th>
									<th>故障维修报告</th>
									<th>维修工程师</th>-->
									<th>维修日期</th>
									<th>维修费用</th>
									<!--<th>维修完成情况</th>
									<th>服务态度</th>
									<th>维修效率</th>
									<th>维修单位负责人</th>-->
                                </tr>
                            </thead>
                            <tbody>
                                <tr ng-repeat="r in gzdevicemaintain.datas">
                                    <td>
                                        <input type="checkbox"
                                            ng-click="selectRow('gzdevicemaintain',r);"
                                            ng-model="r.selected" />
                                    </td>
									<!--  ID -->
            						<!--<td>
                                        <a ng-click="editRow('gzdevicemaintain',r) && openWindow('edit');">
                                            <label ng-bind="r.id"></label>
                                        </a>
                                   </td>-->
									<!--  I_VERSION -->
            						<!--<td>
                                        <a ng-click="editRow('gzdevicemaintain',r) && openWindow('edit');">
                                            <label ng-bind="r.iversion"></label>
                                        </a>
                                   </td>-->
									<!--  设备编号 -->
            						<td>
                                        <a ng-click="editRow('gzdevicemaintain',r) && openWindow('edit');">
                                            <label ng-bind="r.ssbbh"></label>
                                        </a>
                                   </td>
									<!--  设备名称 -->
            						<td>
                                        <a ng-click="editRow('gzdevicemaintain',r) && openWindow('edit');">
                                            <label ng-bind="r.ssbmc"></label>
                                        </a>
                                   </td>
									<!--  故障描述 -->
            						<td>
                                        <a ng-click="editRow('gzdevicemaintain',r) && openWindow('edit');">
                                            <label ng-bind="r.sgzms"></label>
                                        </a>
                                   </td>
									<!--  申请人 -->
            						<td>
                                        <a ng-click="editRow('gzdevicemaintain',r) && openWindow('edit');">
                                            <label ng-bind="r.ssqr"></label>
                                        </a>
                                   </td>
									<!--  申请时间 -->
								   <td>
                                        <a ng-click="editRow('gzdevicemaintain',r) && openWindow('edit');">
                                            <label ng-bind="r.dsqsj | asDate | date:'yyyy-MM-dd'"></label>
                                        </a>
                                   </td>
									<!--  故障报告接收人 -->
            						<!--<td>
                                        <a ng-click="editRow('gzdevicemaintain',r) && openWindow('edit');">
                                            <label ng-bind="r.sgzbgjsr"></label>
                                        </a>
                                   </td>-->
									<!--  报告接收日期 -->
								  <!-- <td>
                                        <a ng-click="editRow('gzdevicemaintain',r) && openWindow('edit');">
                                            <label ng-bind="r.dbgjsrq | asDate | date:'yyyy-MM-dd'"></label>
                                        </a>
                                   </td>-->
									<!--  故障维修工程师 -->
            						<!--<td>
                                        <a ng-click="editRow('gzdevicemaintain',r) && openWindow('edit');">
                                            <label ng-bind="r.sgzwxgcs"></label>
                                        </a>
                                   </td>-->
									<!--  故障维修日期 -->
								  <!-- <td>
                                        <a ng-click="editRow('gzdevicemaintain',r) && openWindow('edit');">
                                            <label ng-bind="r.dgzwxrq | asDate | date:'yyyy-MM-dd'"></label>
                                        </a>
                                   </td>-->
									<!--  故障诊断报告 -->
            						<!--<td>
                                        <a ng-click="editRow('gzdevicemaintain',r) && openWindow('edit');">
                                            <label ng-bind="r.sgzzdbg"></label>
                                        </a>
                                   </td>-->
									<!--  故障维修报告 -->
            						<!--<td>
                                        <a ng-click="editRow('gzdevicemaintain',r) && openWindow('edit');">
                                            <label ng-bind="r.sgzwxbg"></label>
                                        </a>
                                   </td>-->
									<!--  维修工程师 -->
            						<!--<td>
                                        <a ng-click="editRow('gzdevicemaintain',r) && openWindow('edit');">
                                            <label ng-bind="r.swxgcs"></label>
                                        </a>
                                   </td>-->
									<!--  维修日期 -->
								   <td>
                                        <a ng-click="editRow('gzdevicemaintain',r) && openWindow('edit');">
                                            <label ng-bind="r.dwxrq | asDate | date:'yyyy-MM-dd'"></label>
                                        </a>
                                   </td>
									<!--  维修完成情况 -->
            						<!--<td>
                                        <a ng-click="editRow('gzdevicemaintain',r) && openWindow('edit');">
                                            <label ng-bind="r.swxwcqk"></label>
                                        </a>
                                   </td>-->
									<!--  服务态度 -->
            						<!--<td>
                                        <a ng-click="editRow('gzdevicemaintain',r) && openWindow('edit');">
                                            <label ng-bind="r.sfwtd"></label>
                                        </a>
                                   </td>-->
									<!--  维修效率 -->
            						<!--<td>
                                        <a ng-click="editRow('gzdevicemaintain',r) && openWindow('edit');">
                                            <label ng-bind="r.swxxl"></label>
                                        </a>
                                   </td>-->
									<!--  维修费用 -->
            						<td>
                                        <a ng-click="editRow('gzdevicemaintain',r) && openWindow('edit');">
                                            <label ng-bind="r.wxfy"></label>
                                        </a>
                                   </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="zs-pagination-box">
                    <ag-Page fn='gzdevicemaintain'></ag-Page>
                </div>
            </div>
        </div>

        <div ag-Window id="edit" title="设备维修记录编辑" width='800px' height='420px'>
            <div class="zs-form-tab ibox">
                <form name="form" novalidate>
                    <table width="100%">
                        <tbody>
          					<!--<tr>
                                <td class="text" width="20%">ID</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzdevicemaintain.editRow.id" class="zs-input" />
                                </td>
                            </tr>
          					<tr>
                                <td class="text" width="20%">I_VERSION</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzdevicemaintain.editRow.iversion" class="zs-input" />
                                </td>
                            </tr>-->
                             <tr>
                            	<td colspan="4" ><h4 style="color:#009900;">维修申请</h4></td>
                            </tr>
          					<tr>
                                <td class="text" width="20%"><font color="red">*</font>设备编号</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzdevicemaintain.editRow.ssbbh" class="zs-input" readonly="true"/>
                                	 <span ng-show="false"><input hide-novalidate="true" 
                                		alias="设备编号" required 
                                		ng-model="gzdevicemaintain.editRow.ssbbh"
                                		name="form_ssbbh"/></span>
                                </td>
                                <td class="text" width="20%"><font color="red">*</font>设备名称</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzdevicemaintain.editRow.ssbmc" class="zs-input" readonly="true"/>
                                	
                                	 <span ng-show="false"><input hide-novalidate="true" 
                                		alias="设备名称" required 
                                		ng-model="gzdevicemaintain.editRow.ssbmc"
                                		name="form_ssbmc"/></span>
                                </td>
                            </tr>
                            <tr>
                                <td class="left" width="50%" colspan="4" style="padding-left:100px">
                                	<input type="button" name="ok" value="选择设备" class="zs-btn c-green" 
                                        ng-click="openWindow('chooseDevice');" />
                                </td>
                            </tr>
          					<tr>
                                <td class="text" width="20%"><font color="red">*</font>故障描述</td>
                                <td class="left" width="30%" colspan="3">
                                	<input type="text" ng-model="gzdevicemaintain.editRow.sgzms" class="zs-input" />
                                	
                                	<span ng-show="false"><input hide-novalidate="true" 
                                		alias="故障描述" required 
                                		ng-model="gzdevicemaintain.editRow.sgzms"
                                		name="form_sgzms"/></span>
                                </td>
                           </tr>
                           
						   <tr>
                                <td class="text" width="20%"><font color="red">*</font>申请人</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzdevicemaintain.editRow.ssqr" class="zs-input" />
                                	
                                	<span ng-show="false"><input hide-novalidate="true" 
                                		alias="申请人" required 
                                		ng-model="gzdevicemaintain.editRow.ssqr"
                                		name="form_ssqr"/></span>
                                </td>
                                <td class="text" width="20%"><font color="red">*</font>申请时间</td>
                                <td class="left" width="30%">
                                	<ag-Datebox id='fi_dsqsj'  
                                		showcurday='gzdevicemaintain.editRow.FIELD_ISNEW'
		                        		class="zs-input" style="width:175px;height: 28px"
		                        		ng-model="gzdevicemaintain.editRow.dsqsj" >
							   		</ag-Datebox>
                                </td>
                            
                            </tr>
                            
                             <tr>
                            <!--	<td colspan="4"><h4>维修签批</h4></td>-->
                            	<td colspan="4" ><h4 style="color:#009900;">维修签批</h4></td>
                            </tr>
                            
                            <tr>
                                <td class="text" width="20%">签批意见</td>
                                <td class="left" width="30%" colspan="3">
                                	<input type="text" ng-model="gzdevicemaintain.editRow.spyj" class="zs-input" />
                                </td>
                           </tr>
                           
						   <tr>
                                <td class="text" width="20%">签批人</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzdevicemaintain.editRow.sprname" class="zs-input" />
                                </td>
   
                                <td class="text" width="20%">签批时间</td>
                                <td class="left" width="30%">
                                	<ag-Datebox id='fi_dsqsj'  showcurday='gzdevicemaintain.editRow.FIELD_ISNEW'
		                        		class="zs-input" style="width:175px;height: 28px"
		                        		ng-model="gzdevicemaintain.editRow.sprq" >
							   		</ag-Datebox>
                                </td>
                            
                            </tr>
                            <tr>
                            	<!--<td colspan="4"><h4>设备维修</h4></td>-->
                            	<td colspan="4" ><h4 style="color:#009900;">设备维修</h4></td>
                            </tr>
                            <tr>
                            	<td class="text" width="20%"><font color="red">*</font>维修单位</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzdevicemaintain.editRow.swxdw" class="zs-input" />
                                	
                                	<span ng-show="false"><input hide-novalidate="true" 
                                		alias="维修单位" required 
                                		ng-model="gzdevicemaintain.editRow.swxdw"
                                		name="form_swxdw"/></span>
                                </td>
                                
                                <td class="text" width="20%"><font color="red">*</font>联系方式</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzdevicemaintain.editRow.swxdwlxfs" class="zs-input" />
                                </td>
                            </tr>
                            <tr>
                                <td class="text" width="20%">维修工程师</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzdevicemaintain.editRow.sgzwxgcs" class="zs-input" />
                                </td>
                          <!--  </tr>
						   <tr>-->
                                <td class="text" width="20%">维修日期</td>
                                <td class="left" width="30%">
                                	<ag-Datebox id='fi_dgzwxrq'  showcurday='gzdevicemaintain.editRow.FIELD_ISNEW'
		                        		class="zs-input" style="width:175px;height: 28px"
		                        		ng-model="gzdevicemaintain.editRow.dgzwxrq" >
							   		</ag-Datebox>
                                </td>
                            
                               <!-- <td class="text" width="20%">故障诊断报告</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzdevicemaintain.editRow.sgzzdbg" class="zs-input" />
                                </td>-->
                            </tr>
                            
                            <tr>
                                <td class="text" width="20%"><font color="red">*</font>维修费用</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzdevicemaintain.editRow.wxfy" class="zs-input" />
                                	
                                	<span ng-show="false"><input hide-novalidate="true" 
                                		alias="维修费用" required 
                                		ng-model="gzdevicemaintain.editRow.wxfy"
                                		name="form_swxfy"/></span>
                                </td>
                                <td class="text" width="20%">附件</td>
                                <td class="left" width="30%">
                                	<!--<ag-Datebox id='fi_dgzwxrq'  showcurday='true'
		                        		class="zs-input" style="width:175px;height: 28px"
		                        		ng-model="gzdevicemaintain.editRow.dgzwxrq" >
							   		</ag-Datebox>-->
	                           	 	<ag-Upload ng-model="gzdevicemaintain.editRow.wxfyfj" 
				                       ></ag-Upload>
							   		
                                </td>
                            </tr>
                            
                            <tr>
                         <!--   	<td colspan="4"><h4>设备验收</h4></td>-->
                            	<td colspan="4" ><h4 style="color:#009900;">设备验收</h4></td>
                            </tr>
                            
                            <tr>
                                <td class="text" width="20%">验收意见</td>
                                <td class="left" width="30%" colspan="3">
                                	<input type="text" ng-model="gzdevicemaintain.editRow.wxfy" class="zs-input" />
                                </td>
                           </tr>
                           
						   <tr>
                                <td class="text" width="20%">验收人</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzdevicemaintain.editRow.wxysrname" class="zs-input" />
                                </td>
 
                                <td class="text" width="20%">验收时间</td>
                                <td class="left" width="30%">
                                	<ag-Datebox id='fi_dsqsj'  showcurday='gzdevicemaintain.editRow.FIELD_ISNEW'
		                        		class="zs-input" style="width:175px;height: 28px"
		                        		ng-model="gzdevicemaintain.editRow.wxyssj" >
							   		</ag-Datebox>
                                </td>
                            
                            </tr>
                            
                            
                              <tr>
                         <!--   	<td colspan="4"><h4>设备验收</h4></td>-->
                            	<td colspan="4" ><h4 style="color:#009900;">附件</h4></td>
                            </tr>
                            
                            <tr>
                                <td class="text" width="20%">故障诊断报告</td>
                                <td class="left" width="30%" colspan="3">
                                	<ag-Upload ng-model="gzdevicemaintain.editRow.swxdwfzr" 
				                       ></ag-Upload>
                                	<!--<input type="text" ng-model="gzdevicemaintain.editRow.swxdwfzr" class="zs-input" />-->
                                </td>
                            </tr>
                            <tr>
                            	 <td class="text" width="20%">故障维修报告</td>
                                <td class="left" width="30%" colspan="3">
                                	<!--<input type="text" ng-model="gzdevicemaintain.editRow.sgzwxbg" class="zs-input" />-->
                                	 	<ag-Upload ng-model="gzdevicemaintain.editRow.sgzwxbg" 
				                       ></ag-Upload>
                                </td>
                            </tr>
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="4">
                                    <input type="button" name="ok" value="保存" class="zs-btn c-red"
                                        ng-click="formValidate(form) && save('gzdevicemaintain', gzdevicemaintain.editRow, saveCloseWindow)"/>
                                    <input type="button" name="ok" value="取消" class="zs-btn c-green" 
                                        ng-click="closeWindow('edit')" />
                                </td>
                            </tr>
                        </tfoot>
                    </table>
                </form>
            </div>
        </div>
        <div ag-Window id="chooseDevice" title="选择设备" width='560px' height='360px'>
		    <div class="zs-form-tab ibox"
		    	data-ng-init="formInit('gzdevice', {
			        keyField:'id',
			        randomFields:['id'],
			        orderObject:{id:0},
			        queryObject:{'szt':'clzt_wsy'}
			    }) && loadData('gzdevice');setConHei();">
		        <div class="zs-nice-tab idTabs">
					<div class="tool item" style="margin-left:6px;">
		            	<span class="search-warpper">
	                    <i class="icon"></i>
	                    <input type="text" class="zs-input" placeholder="设备编号" ng-model="gzdevice.queryObject['ssbbh']" />
	                </span>
	                <span class="search-warpper">
	                    <i class="icon"></i>
	                    <input type="text" class="zs-input" placeholder="设备名称" ng-model="gzdevice.queryObject['ssbmc']" />
	                </span>
		            </div>
		            <div class="operation item" style="margin-top:7px;">
		            	<input type="button" class="zs-btn orange" value="查询" 
		            		ng-click="loadData('gzdevice')"/>
		                <!--<a class="ope-1" ng-click="loadData('gzdevice')"></a>
		                <a class="ope-2"></a>-->
		            </div>
		            <div class="switch">
		                
		            </div>
		        </div>
		        <div class="date-container">
		            <div id="zpgwd">
		                <div class="zs-data-table">
		                    <div class="container">
		                        <table>
		                            <thead>
		                                <tr>
		                                	<th></th>
											<th>设备名称</th>
											<th>型号</th>
											<th>是否涉密设备</th>
		                                </tr>
		                            </thead>
		                            <tbody>
		                                <tr ng-repeat="r in gzdevice.datas">
		                                	<td>
		                                        <input type="checkbox"
		                                            ng-click="selectRow('gzdevice',r,true);"
		                                            ng-model="r.selected" />
		                                    </td>
		            						<td>
		                                        <a >
		                                            <label ng-bind="r.ssbmc"></label>
		                                        </a>
		                                   </td>
		            						<td>
		                                        <a >
		                                            <label ng-bind="r.sxh"></label>
		                                        </a>
		                                   </td>
		            						<td>
		                                        <a >
		                                            <label ng-bind="r.isfsmsbName"></label>
		                                        </a>
		                                   </td>
		                                </tr>
		                            </tbody>
		                            <tfoot>
			                            <tr>
			                                <td colspan="4">
			                                    <input type="button" class="zs-btn orange" value="选择" 
                									ng-click="chooseDevice(gzdevicemaintain.editRow,gzdevice.sRows[0],'chooseDevice');"/>
			                                </td>
			                            </tr>
			                        </tfoot>
		                        </table>
		                    </div>
		                </div>
		                <div class="zs-pagination-box">
		                    <ag-Page fn='gzdevice'></ag-Page>
		                </div>
		            </div>
		        </div>
		    </div>
		</div>
    </div>
</div>